package com.itheima.mm.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class HmArticles {
    @TableId(type = IdType.AUTO)//主键自增
    private Integer id;

    private String title;//标题
    @TableField(value = "articleBody")
    private String articleBody;//文章正文
    @TableField(value = "videoUrl")
    private String videoUrl;//视频地址

    private Integer visits;//阅读数

    private Integer state;//状态
    @TableField(value = "createTime")
    private LocalDateTime createTime;//创建时间
    @TableField(value = "creatorId")
    private Integer creatorId;//创建人

}
